Login     Sign up
create a module file sharing
Rodrigo (@rodrigoriveras)
Join date: Nov 23rd 2010
Community posts: 2
View Profile
Send Message

Hello, I am new in this. How can i create a module file sharing o or already exists this module? Thanks a lot

164 months ago
Eino (@eino)
Join date: Oct 15th 2010
Community posts: 56
View Profile
Send Message

I can create for you a price of 88 € which includes the management of which you can allow certain file types. Contact for me.

164 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

sounds like alot to pay just for a mod lol....mate do it yourself there are tons of free scripts out there do abit of googling :)

164 months ago
Eliz zeta (@eliz)
Join date: Nov 29th 2010
Community posts: 153
View Profile
Send Message

<?php

// place this code inside a php file and call it f.e. "download.php"
$path = $_SERVER['DOCUMENT_ROOT']."/path2file/"; // change the path to fit your websites document structure
$fullPath = $path.$_GET['download_file'];

if ($fd = fopen ($fullPath, "r")) {
$fsize = filesize($fullPath);
$path_parts = pathinfo($fullPath);
$ext = strtolower($path_parts["extension"]);
switch ($ext) {
case "pdf":
header("Content-type: application/pdf"); // add here more headers for diff. extensions
header("Content-Disposition: attachment; filename=\"".$path_parts["basename"]."\""); // use 'attachment' to force a download
break;
default;
header("Content-type: application/octet-stream");
header("Content-Disposition: filename=\"".$path_parts["basename"]."\"");
}
header("Content-length: $fsize");
header("Cache-control: private"); //use this to open files directly
while(!feof($fd)) {
$buffer = fread($fd, 2048);
echo $buffer;
}
}
fclose ($fd);
exit;
// example: place this kind of link into the document where the file download is offered:
// <a href="download.php?download_file=some_file.pdf">Download here</a>
?>

164 months ago
fantastica (@fantastica)
Join date: Nov 26th 2010
Community posts: 82
View Profile
Send Message

[quote=eliz]<?php

// place this code inside a php file and call it f.e. "download.php"
$path = $_SERVER['DOCUMENT_ROOT']."/path2file/"; // change the path to fit your websites document structure
$fullPath = $path.$_GET['download_file'];

if ($fd = fopen ($fullPath, "r")) {
$fsize = filesize($fullPath);
$path_parts = pathinfo($fullPath);
$ext = strtolower($path_parts["extension"]);
switch ($ext) {
case "pdf":
header("Content-type: application/pdf"); // add here more headers for diff. extensions
header("Content-Disposition: attachment; filename=\"".$path_parts["basename"]."\""); // use 'attachment' to force a download
break;
default;
header("Content-type: application/octet-stream");
header("Content-Disposition: filename=\"".$path_parts["basename"]."\"");
}
header("Content-length: $fsize");
header("Cache-control: private"); //use this to open files directly
while(!feof($fd)) {
$buffer = fread($fd, 2048);
echo $buffer;
}
}
fclose ($fd);
exit;
// example: place this kind of link into the document where the file download is offered:
// <a href="download.php?download_file=some_file.pdf">Download here</a>
?>[/quote]

thank u too man
but can u explane moore for people that not yet knowly how to do this ?!
thank u too

164 months ago
maxim cristian (@n3c3sar)
Join date: Mar 25th 2011
Community posts: 7
View Profile
Send Message

YOU FIND THE DOWLOADS MODULE HERE [url]http://n3c3sar.com/downloads#axzz1NpIBBn2V[/url] I UPLOAD FOR YOU AND ENYONE WANT IT
it's free I GET FROM SHIFTY WEBSITE

158 months ago
Craig Hopson (@craighopson)
Join date: Mar 24th 2011
Community posts: 26
View Profile
Send Message

I have a working upload download module created by Shifty and works well feel free to login and help your self

158 months ago
1
Oscar MR (@micuate)
Join date: Oct 8th 2010
Community posts: 21
View Profile
Send Message

I will like realy a file sharing module, where the users can upload theirs files in private area, protectec by a password, and then the users can login and open his download area, and can see all his files.

157 months ago